package com.pet.server.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户门店表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-server-domain-entity-UserShop")
@Data
@NoArgsConstructor
@TableName(value = "t_user_shop")
public class UserShop implements Serializable {
  private static final long serialVersionUID = 1212900938039267783L;
  public static final String COL_ID = "id";
  public static final String COL_USER_ID = "user_id";
  public static final String COL_SHOP_ID = "shop_id";

  /** 主键ID */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "主键ID")
  private Integer id;

  /** 用户ID */
  @TableField(value = "user_id")
  @ApiModelProperty(value = "用户ID")
  private Integer userId;

  /** 门店ID */
  @TableField(value = "shop_id")
  @ApiModelProperty(value = "门店ID")
  private Integer shopId;
}
